package com.avit.tv.kui;

import android.content.Context;
import com.avit.tv.kui.theme.BaseTheme;

/**
 * UI主入口，用来configuration 全局属性，整个UI库
 * @author like
 * @date 2020/6/10
 */
public class Config {

    private BaseTheme theme;
    private Context context;

    private static Config kui;
    private Config(){}
    public static Config getInstance(){
        if (kui == null){
            synchronized (Config.class){
                if (kui == null){
                    kui = new Config();
                }
            }
        }
        return kui;
    }

    public BaseTheme getTheme() {
        return theme;
    }

    public void  init(Context context){
        this.context = context;
    }

    public void setTheme(BaseTheme theme) {
        this.theme = theme;
    }

}
